{% extends "base.html" %} {% block title %}My Dashboard — LegalEase AI{% endblock %} {% block content %}

My Dashboard

Welcome back, {{ user.full_name }}{% if user.city %}  ·  {{ user.city }}{% endif %}

Submit New Case
{% if request.query_params.get('booked') %}
Appointment booked successfully! The lawyer will confirm shortly.
{% endif %}
{{ cases|length }}
Total Cases
{{ appointments|selectattr('status','equalto','confirmed')|list|length }}
Confirmed Appointments
{{ appointments|selectattr('status','equalto','pending')|list|length }}
Pending Appointments
My Cases
{% if cases %} {% for case in cases[:5] %} {% endfor %}
Category Status Date
{{ case.category or '—' }} {% if case.status in ('reviewed', 'filed', 'hearing_scheduled', 'resolved') %} {{ case.status|title }} {% elif case.status == 'pending' %} Under Review {% else %} {{ case.status|title }} {% endif %} {{ case.created_at.strftime('%b %d, %Y') }} View
{% else %}
No cases yet. Submit your first case →
{% endif %}
My Appointments
{% if appointments %} {% for appt in appointments[:5] %} {% endfor %}
Date Time Status
{{ appt.appointment_date }} {{ appt.appointment_time }} {% if appt.status == 'confirmed' %} Confirmed {% elif appt.status == 'cancelled' %} Cancelled {% else %} Pending {% endif %} {% if appt.case_id %} View Case {% endif %}
{% else %}
No appointments yet.
{% endif %}
{% if hearings %}
Upcoming Virtual Hearings {{ hearings|length }}
{% for hearing in hearings %}
{{ hearing.scheduled_date }} at {{ hearing.scheduled_time }}
{{ hearing.hearing_type.replace('_',' ').title() }} {% if hearing.judge_name %} · Judge: {{ hearing.judge_name }}{% endif %}
{% if hearing.zoom_password %}
Meeting Password: {{ hearing.zoom_password }}
{% endif %}
{{ hearing.status|title }} Join Zoom Hearing
{% endfor %}
{% endif %}
Quick Actions
{% endblock %}